<?php
header('Content-Type:text/html;charset=utf-8');
session_start();
require_once './config/sys_config.php';
require_once MB_CONF_DIR  . '/user_config.php';
require_once MB_APP_DIR   . '/global.class.php';
require_once MB_MODEL_DIR . '/oauth.class.php';
require_once MB_MODEL_DIR . '/opent.class.php';
require_once MB_MODEL_DIR . '/api_client.class.php';

echo "====================>> Start <<====================<br>";
//设置logger
$logger = new MBLog($mbConfig["log_path"], "test", false);
MBGlobal::setLogger($logger);

//$c = new MBApiClient(MB_AKEY, MB_SKEY, MB_ADMIN_OAUTH_TOKEN, MB_ADMIN_OAUTH_TOKEN_SECRET);

//广播大厅消息
//$p =array(
//	'p' => 0,
//	'n' => 20
//);
//$response_arr = $c->getPublic($p);

//var_dump($response_arr);
//var_dump($response_arr['data']['info']);

//$interestUserMod = MBGlobal::getAdminRecomm()->getMod(4);
//var_dump($interestUserMod);
//
//$interestUserList = MBGlobal::getAdminRecomm()->showInterestUser(0, 10, 1);
//var_dump($interestUserList);

$interestUserMod = MBGlobal::getAdminRecomm()->getMod(8);
var_dump($interestUserMod);

$BulletinList = MBGlobal::getAdminRecomm()->showBulletin(0, 10, 1);
var_dump($BulletinList);

echo "====================>> End <<====================<br>";
?>
